<template lang="pug">
  van-datetime-picker(ref="pick" :value="value" type="time" @confirm="confim" @cancel="cancel")
</template>
<script>
export default {
  name: 'dateRender',
  components: {},
  props: ['config', 'editor', 'value', 'readonly'],
  methods: {
    confim() {
      let date = this.$refs.pick.$children[0].getValues()
      this.$emit('input', date.join(':') + ':00')
      this.$emit('popupClose', date.join(':') + ':00')
    },
    cancel() {
      this.$emit('popupClose')
    }
  }
}
</script>
<style lang="scss">

</style>
